
<link href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet" type="text/css">
<#include "/common/pagerForm.html">
<style>
<!--
.andonAttribute label{
width:110px;
}
-->
</style>
<form rel="pagerForm" method="post" action="${rc.getContextPath()}/manage/andonAttribute/selectAndonAttribute" onsubmit="return  dwzSearch(this, 'dialog');">
<input type="hidden" name="navTabId" value="${navTabId!''}" />
    <div class="pageHeader">
        <div class="searchBar andonAttribute" >
            <ul class="searchContent">
                <li ><label><@label key="andonAttributeCode.C,colon">ANDON属性编号：</@label></label> <input type="text" class="textInput" name="attributeCode" value="${condition.attributeCode!''}" /></li>
                <li ><label><@label key="andonAttributeText.C,colon">ANDON属性描述：</@label></label> <input type="text" class="textInput" name="attributeText" value="${condition.attributeText!''}" /></li>
            </ul>
            <ul class="searchContent">
                <li>
                    <label><@label key="andonAttributeType.C,colon">ANDON属性类型：</@label></label> 
                    <select name="valueTypeEcode" >
                        <option value=""> 所有</option>
                        <#if  ECode??&&(ECode?size>0)>
                            <#list ECode as eCode>
                                <!-- <#if eCode.eCode??&&eCode.eCode==andonAttribute.valueTypeCode>
                                </#if> -->
                                    <option value="${eCode.eCode!''}" 
                                    
                                    <#if condition.valueTypeEcode==eCode.eCode>
                                        selected="selected"
                                    </#if>
                                    >${eCode.eCodeText!''}</option>
                            </#list>
                        </#if>
                    </select>
                </li>
                    <li class="query">
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit"><@label key="query.B">查询</@label></button>
                            </div>
                        </div>
                    </li>
                    
            </ul>
        </div>
    </div>
</form>
    <table class="table border" width="100%" targetType="dialog" layoutH="165" style="overflow:scroll;">
        <thead>
            <tr>
                <th width="30"><input type="checkbox" class="checkboxCtrl" group="andonAttribute" /></th>
                <th width="40"><@label key="serialNumber.C">序号</@label></th>
                <th width="120" orderField="attributeCode"<#if (page.orderField?? && page.orderField == 'attributeCode')>class="${page.orderDirection!''}"</#if>><@label key="andonAttributeCode.C">ANDON属性编号</@label></th>
                <th width="100" orderField="attributeText"<#if (page.orderField?? && page.orderField == 'attributeText')>class="${page.orderDirection!''}"</#if>><@label key="andonAttributeText.C">ANDON属性描述</@label></th>
                <th width="50" orderField="valueTypeEcode"<#if (page.orderField?? && page.orderField == 'valueTypeEcode')>class="${page.orderDirection!''}"</#if>><@label key="type.C">类型</@label></th>
                <th width="120" orderField="memo"<#if (page.orderField?? && page.orderField == 'memo')>class="${page.orderDirection!''}"</#if>><@label key="memo.C">备注</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as andonAttribute>
            <tr target="andonAttribute_code" rel="${andonAttribute.attributeCode!''}">
               <td><input type="checkbox" name="andonAttribute" value="{attributeCode:'${andonAttribute.attributeCode!''}', attributeText:'<@json_escape>${andonAttribute.attributeText!''}</@json_escape>',
               valueTypeEcode:'<#list ECode as eCode><#if eCode.eCode==andonAttribute.valueTypeEcode>${eCode.eCodeText}</#if></#list>' }"/></td>
                <td>${page.startRow + andonAttribute_index}</td>
                <td>${andonAttribute.attributeCode!''}</td>
                <td>${andonAttribute.attributeText!''}</td>
                <td>
                    <#list ECode as eCode>
                            <#if eCode.eCode==andonAttribute.valueTypeEcode>
                            ${eCode.eCodeText!''}
                            </#if>
                    </#list>
                </td>
                <td>${andonAttribute.memo!''}</td>
            </tr>
            </#list> <#else>
                <tr >
                <td colspan="7"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if> <#else>
            <tr >
                <td colspan="7"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if>
        </tbody>
    </table>
        <#include "/common/dialogPanelBar.html">
    
</div>

<div class="formBar">
        <ul>
            <li><div class="buttonActive"><div class="buttonContent"><button type="button" multLookup="andonAttribute" warn="请选择ANDON属性"><@label key="ok.B">确定</@label></button></div></div></li>
            <li>
            <div class="buttonActiveGrey" >
                        <div class="buttonContent" >
                            <button class="close" type="button"><@label key="close.B">关闭</@label></button>
                        </div>
                    </div>
            </li>
        
        </ul>
    </div>

   